#include <cassert>
#include <iostream>
#include <random>

auto genNumberSeq() {
  std::random_device rd;
  std::mt19937 mt(rd());
  std::uniform_int_distribution<> uid(1, 100);

  std::vector<int> datas;
  for (int i = 0; i < 10; i++)
    datas.push_back(uid(mt));

  return datas;
}

const std::vector<int> &sort(std::vector<int> &v) { return v; }

bool evaluate(const std::vector<int> &v) {

  assert(v.size());
  int tmp = v[0];
  std::cout << "[";
  for (auto i : v) {
    std::cout << i << ",";
    if ((tmp - i) >= 0) {
      tmp = i;
      continue;
    } else {
      return false;
    }
  }
  std::cout << "]";

  return 1;
}

int main(int argc, char **argv) {
  std::cout << "hello world!" << std::endl;

  auto v = genNumberSeq();

  evaluate(sort(v));

  return 0;
}
